home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: jlilley@ix.netcom.com (John Lilley)
- Newsgroups: comp.lang.c++
- Subject: Re: NEWBIE: Compilation of header file requested ???
- Date: 14 Mar 1996 17:26:56 GMT
- Organization: Netcom
- Distribution: world
- Message-ID: <4i9kt0$2m1@cloner3.netcom.com>
- References: <4hv9qa$jqk@msunews.cl.msu.edu>
- NNTP-Posting-Host: den-co7-20.ix.netcom.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-NETCOM-Date: Thu Mar 14 9:26:56 AM PST 1996
- X-Newsreader: WinVN 0.99.7
-
- In article <4hv9qa$jqk@msunews.cl.msu.edu>, brian@wintermute says...
- >
- >I have been using GCC under linux to write my first C++ program under the WPE
- >programmers editor. Things have been going fine for a few weeks, until
- suddenlyI get the following error from GCC:
- >
- > gcc -c -g /home/brian/pentai/Board.h -o ./Board.o
- >gcc: Compilation of header file requested
- >
-
- By convention, files ending with '.h' are header files that define
- functions and classes. Files ending with '.c' or '.cpp', etc contain
- the body of the code. Sounds like you put your code into a header file,
- which is no big deal, but unusual.
-
- john lilley
-
-